import Vue from 'vue'
import App from './App.vue'

import router from './router'
import store from './store'
import http from "./utils/fetch"
import * as filters from "./utils/filter"
import plugins from './utils/plugins'
import qrcode from 'qrcode'
// import 'lib-flexible'
import "amfe-flexible"

import "./assets/iconfont.css"


router.beforeEach((to,from,next)=>{
  document.title = to.meta.title  || "每时每刻"
  
  next()
})



Vue.config.productionTip = false
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})
Vue.prototype.$http = http;
Vue.prototype.$pub = plugins;
Vue.prototype.$qrcode = qrcode;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
